<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateIncinerationPlantsTable extends Migration
{
    /**
     * Run the migrations.
     * 焚烧厂
     *
     * @return void
     */
    public function up()
    {
        Schema::create('incineration_plants', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('名称');
            $table->string('address')->comment('地址');
            $table->point('location')->comment('经纬度')->nullable();
            $table->string('phone')->comment('热线电话')->nullable();
            $table->string('principal')->comment('联系人')->nullable();
            $table->integer('number')->comment('日处理量')->nullable();
            $table->string('servicing_time')->comment('服务时间')->nullable();
            $table->string('end_time')->comment('停运时间')->nullable();
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('incineration_plants');
    }
}
